﻿using System;
using UnityEngine;

namespace Studio
{
	// Token: 0x020004C7 RID: 1223
	public class GuideViewCtrl : MonoBehaviour
	{
		// Token: 0x06001F2D RID: 7981 RVA: 0x000C2738 File Offset: 0x000C0938
		public void OnClick()
		{
			this.isDefault = !this.isDefault;
			this.camera.cullingMask = ((!this.isDefault) ? this.layerMask : this.layerMaskDefault);
			this.drawLightLine.enabled = this.isDefault;
		}

		// Token: 0x06001F2E RID: 7982 RVA: 0x000C2794 File Offset: 0x000C0994
		private void Awake()
		{
			this.camera.enabled = true;
			this.layerMaskDefault = this.camera.cullingMask;
			this.drawLightLine.enabled = true;
			this.isDefault = true;
		}

		// Token: 0x04002105 RID: 8453
		[SerializeField]
		private Camera camera;

		// Token: 0x04002106 RID: 8454
		[SerializeField]
		private LayerMask layerMask = -1;

		// Token: 0x04002107 RID: 8455
		private LayerMask layerMaskDefault = -1;

		// Token: 0x04002108 RID: 8456
		[SerializeField]
		private DrawLightLine drawLightLine;

		// Token: 0x04002109 RID: 8457
		private bool isDefault = true;
	}
}
